<nz-card [nzTitle]="title">
    <ng-template #title>
        <button (click)="add()"
                nz-button
                nzType="primary"><i nz-icon
                                    nzType="plus"></i> 添加
        </button>
        <button (click)="save()"
                [disabled]="data.length <= 0"
                nz-button
                nzType="primary"><i nz-icon nzType="save"></i> 保存
        </button>
    </ng-template>
    <st #st
        [bordered]="true"
        [columns]="columns"
        [data]="data"
        [page]="page">
        <ng-template let-index="index" let-item st-row="amount">
            <!--            <nz-tooltip [nzTitle]="'年龄：' + item.age">-->
            <!--                <span nz-tooltip>tooltip: {{item.age}}-{{index}}</span>-->
            <!--            </nz-tooltip>-->
            <nz-input-number
                    (ngModelChange)="amountChane(index,item)"
                    [(ngModel)]="item.amount"
                    [nzFormatter]="formatterDollar"
                    [nzMax]="maxAmount(item)"
                    [nzMin]="0.1"
                    [nzParser]="parserDollar"
                    [nzPlaceHolder]="'设置分成金额'"
                    [nzStep]="0.1"
            ></nz-input-number>
        </ng-template>
    </st>
</nz-card>
